package com.example.obmb.customer.service;

import com.alibaba.fastjson.JSONObject;
import com.example.obmb.common.base.R;
import com.example.obmb.common.base.PageParams;
import com.example.obmb.common.entity.CustomerDO;
import com.example.obmb.common.entity.StatementInfoDO;
import com.example.obmb.common.entity.StatementPdfDO;
import com.example.obmb.common.vo.StatementInfoResponseVO;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface ICustomerSerivce{

    /**
     * 查询投资账户的电子账单选项
     * @param cif 客户号
     * @param productType 产品类型
     * @return 查询列表
     */
    R<Object> getCustomerEstatementType(String cif, String productType);

    /**
     * 设定投资账户为电子账单
     * @param customerDO --tradingAcc 户口号码 --isEstatement 是否电子结单(Y/N)
     * @return
     */
    R<Object> modifyCustomerEstatementType(CustomerDO customerDO);

    StatementInfoResponseVO queryStatementInfo(PageParams<StatementInfoDO> request);

    R<Object> getPdfByP9usd(Long recordId, HttpServletResponse response);

    byte[] getPdfByDocumentum(StatementPdfDO statementPdfDO);

}
